<?php
/**
 *  view: all gallery items (part view)
 *  File: profile/part/all_gallery_items
 */
?>


        
        <div class="profil-gallery">
          
          <?php
            
            if( count($images)>0 ){ // ima slika
              
              $i=0;
              foreach( $images as $row )
              {
                if( 0 == $row->private || $user->is_my_friend ) // Nije privatna ili je moj prijatelj
                {
                  echo "
                    <a class='group1' href='".base_url()."profile/image/big/{$row->user_id}/{$row->name}' title='' ><img src='".base_url()."profile/image/thumb/{$row->user_id}/{$row->name}' alt='".$this->session->userdata('username')."-".$i."' ></a>
                  ";
                }
                else
                {
                  echo " <img src='".base_url()."img/lock-photo.jpg' alt='lock-photo' > ";
                }
                $i++;
                
              }
              
            }
            
            ?>
        	
        </div><!--end profil-gallery-->
        
        <script>
			$(document).ready(function(){
                // Colorbox
				$(".group1").colorbox({rel:'group1'});                
			});
		</script> 
        
        